package cn.fourhundredandeighteen.dao;

import cn.fourhundredandeighteen.entity.StudentCourse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentCourseDao {
    int deleteByPrimaryKey(Long id);

    int insert(StudentCourse record);

    int insertSelective(StudentCourse record);

    StudentCourse selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StudentCourse record);

    int updateByPrimaryKey(StudentCourse record);

    List<StudentCourse> selectStudentToCourse(@Param("studentId") Long studentId);

    List<StudentCourse> selectCourseToStudent(@Param("courseId")Long courseId);

    int selectStudentCourse(@Param("courseId") Long courseId,@Param("studentId") Long studentId);

    int delStudentCourse(@Param("courseId") Long courseId,@Param("studentId") Long studentId);
}